# -*- coding: utf-8 -*-
# @Time : 2023/4/4 21:28
# @Author : 陈鹏飞
# @Email ： 2578925789@qq.com
# @File : val
# @Description : 

import os

if __name__ == "__main__":
    from ultralytics import YOLO

    # Load a model
    model = YOLO('./runs/detect/train10/weights/best.pt')  # load an official model

    # Validate the model
    metrics = model.val()  # no arguments needed, dataset and settings remembered
    metrics.box.map  # map50-95
    # metrics.box.map50  # map50
    # metrics.box.map75  # map75
    metrics.box.maps  # a list contains map50-95 of each category

